import { Field, Int, ObjectType } from "@nestjs/graphql";
import { TeacherOnClasses } from "@prisma/client";
import { TeacherEntity } from "../teacher.entity/teacher.entity";
import { ClassesEntity } from "../classes.entity/classes.entity";

@ObjectType()
export class TeacherOnClassesEntity implements TeacherOnClasses {
    @Field(() => Int)
    teacherId: number;

    @Field(() => TeacherEntity, { nullable: true })
    teacher?: TeacherEntity

    @Field(() => Int)
    classesId: number;

    @Field(() => ClassesEntity, { nullable: true })
    classes?: ClassesEntity
}
